import Vue from "vue";
import App from "./App.vue";
import router from "./router";

// 引入echarts
import echarts from "echarts";
Vue.prototype.$echarts = echarts;
//请求封装函数
import client from "@/assets/js/client.js";
Vue.prototype.$client = client;

//工具类函数
import Tools from "@/assets/js/tools.js";

// 拖拽函数
import drag from "@/assets/js/drag.js";

/* 初始化CSS, 公共类样式*/
import "@/assets/css/reset.css";

import {
  Button,
  Table,
  TableColumn,
  Pagination,
  DatePicker,
  Icon,
  Input,
  Form,
  FormItem,
  Dialog
} from "element-ui";
Vue.config.productionTip = false;
Vue.use(Button);
Vue.use(Table);
Vue.use(TableColumn);
Vue.use(Pagination);
Vue.use(DatePicker);
Vue.use(Icon);
Vue.use(Input);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Dialog);
new Vue({
  router,
  render: (h) => h(App),
  beforeCreate() {
    window.Tools = Tools;
  },
}).$mount("#app");
